package com.jack.payment.entity.business;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "支付环境")
public class PaymentInitBo implements Serializable {
    @Schema(description = "支付宝")
    private PaymentInitMethodBo aliPaymentEnv;
    @Schema(description = "stripe 支付")
    private PaymentInitMethodBo stripePaymentEnv;
    @Schema(description = "微信")
    private PaymentInitMethodBo wechatPaymentEnv;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Schema(name = "支付方式初始化 内部解析")
    public static class PaymentInitMethodBo implements Serializable{
        @Schema(description = "具体的支付环境所属id")
        private Integer envId;
        @Schema(description = "bean的名称")
        private String beanName;
    }
}
